package react.api;

import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;
import org.springframework.web.multipart.MultipartFile;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.io.File;

/**
 * Created by tiansha on 2016/4/22.
 */
@RestController
@RequestMapping("/api/upload")
public class UploadController {

  @RequestMapping(method= RequestMethod.POST)
  public String handle(HttpServletRequest request, HttpServletResponse response, @RequestParam("options") String[] options) {
    return "success";
  }
}
